+2001-09-20 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
+ try to handle alignment here, because it's done by PangoLayout
+ after we set the layout width. Fix from Dov.
+
2001-09-21 Hans Breuer <hans@breuer.org>
* gdk/gdk.def :
+2001-09-20 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
+ try to handle alignment here, because it's done by PangoLayout
+ after we set the layout width. Fix from Dov.
+
2001-09-21 Hans Breuer <hans@breuer.org>
* gdk/gdk.def :
+2001-09-20 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
+ try to handle alignment here, because it's done by PangoLayout
+ after we set the layout width. Fix from Dov.
+
2001-09-21 Hans Breuer <hans@breuer.org>
* gdk/gdk.def :
+2001-09-20 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
+ try to handle alignment here, because it's done by PangoLayout
+ after we set the layout width. Fix from Dov.
+
2001-09-21 Hans Breuer <hans@breuer.org>
* gdk/gdk.def :
+2001-09-20 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
+ try to handle alignment here, because it's done by PangoLayout
+ after we set the layout width. Fix from Dov.
+
2001-09-21 Hans Breuer <hans@breuer.org>
* gdk/gdk.def :
+2001-09-20 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
+ try to handle alignment here, because it's done by PangoLayout
+ after we set the layout width. Fix from Dov.
+
2001-09-21 Hans Breuer <hans@breuer.org>
* gdk/gdk.def :
+2001-09-20 Havoc Pennington <hp@redhat.com>
+
+ * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
+ try to handle alignment here, because it's done by PangoLayout
+ after we set the layout width. Fix from Dov.
+
2001-09-21 Hans Breuer <hans@breuer.org>
* gdk/gdk.def :
@show_toggle_indicator: unused
@show_submenu_indicator: whether to show the arrow or not
+<!-- ##### FUNCTION gtk_menu_item_set_placement ##### -->
+<para>
+Specifies the placement of the submenu around the menu item. The placement
+is usually #GTK_LEFT_RIGHT for menu items in a popup menu and
+#GTK_TOP_BOTTOM in menu bars.
+</para>
+<para>
+This function is useless in usual applications.
+</para>
+
+@menu_item: the menu item
+@placement: the submenu placement
+
<!-- ##### FUNCTION gtk_object_arg_get ##### -->
<para>
Private function to get an argument and argument info from an object.
@group_cycling:
@Returns:
+<!-- ##### FUNCTION gtk_widget_get_usize ##### -->
+<para>
+
+</para>
+
+@widget:
+@width:
+@height:
+
<!-- ##### FUNCTION gtk_widget_pop_style ##### -->
<para>
Adds a new #GtkMenuItem to the end of the menu's item list.
</para>
+<!-- # Unused Parameters # -->
@menu: a #GtkMenu.
@child: The #GtkMenuItem to add.
-<!-- # Unused Parameters # -->
@m:
@c:
Adds a new #GtkMenuItem to the beginning of the menu's item list.
</para>
-@menu_child:
<!-- # Unused Parameters # -->
+@menu_child:
@m:
@c:
@menu: a #GtkMenu.
indicated by @position.
</para>
+<!-- # Unused Parameters # -->
@menu: a #GtkMenu.
@child: The #GtkMenuItem to add.
@pos:
-<!-- # Unused Parameters # -->
@position: The position in the item list where @child is added.
Positions are numbered from 0 to n-1.
@menu_item: the menu item widget
-<!-- ##### FUNCTION gtk_menu_item_set_placement ##### -->
-<para>
-Specifies the placement of the submenu around the menu item. The placement
-is usually #GTK_LEFT_RIGHT for menu items in a popup menu and
-#GTK_TOP_BOTTOM in menu bars.
-</para>
-<para>
-This function is useless in usual applications.
-</para>
-
-@menu_item: the menu item
-@placement: the submenu placement
-
-
<!-- ##### FUNCTION gtk_menu_item_select ##### -->
<para>
Emits the "select" signal on the given item. Behaves exactly like
#GtkRcStyle structures to form a #GtkStyle.
</para>
-@parent_instance:
@name:
@bg_pixmap_name:
@font_desc:
@height:
-<!-- ##### FUNCTION gtk_widget_get_usize ##### -->
-<para>
-
-</para>
-
-@widget:
-@width:
-@height:
-
-
<!-- ##### MACRO gtk_widget_pop_visual ##### -->
<para>
static void
set_para_values (GtkTextLayout *layout,
GtkTextAttributes *style,
- GtkTextLineDisplay *display,
- gdouble *align)
+ GtkTextLineDisplay *display)
{
PangoAlignment pango_align = PANGO_ALIGN_LEFT;
int layout_width;
break;
}
- switch (pango_align)
- {
- case PANGO_ALIGN_LEFT:
- *align = 0.0;
- break;
- case PANGO_ALIGN_RIGHT:
- *align = 1.0;
- break;
- case PANGO_ALIGN_CENTER:
- *align = 0.5;
- break;
- }
-
pango_layout_set_alignment (display->layout, pango_align);
pango_layout_set_spacing (display->layout,
style->pixels_inside_wrap * PANGO_SCALE);
gchar *text;
PangoAttrList *attrs;
gint text_allocated, layout_byte_offset, buffer_byte_offset;
- gdouble align;
PangoRectangle extents;
gboolean para_values_set = FALSE;
GSList *cursor_byte_offsets = NULL;
*/
if (!para_values_set)
{
- set_para_values (layout, style, display, &align);
+ set_para_values (layout, style, display);
para_values_set = TRUE;
}
if (!para_values_set)
{
style = get_style (layout, &iter);
- set_para_values (layout, style, display, &align);
+ set_para_values (layout, style, display);
release_style (layout, style);
}
pango_layout_get_extents (display->layout, NULL, &extents);
- display->x_offset += (display->total_width - PANGO_PIXELS (extents.x + extents.width)) * align;
-
display->width = PANGO_PIXELS (extents.width) + display->left_margin + display->right_margin;
display->height += PANGO_PIXELS (extents.height);